package com.xixi.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xixi.demo.utils.DateUtils;
import lombok.Data;

import java.util.Date;

@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Boolean deleteFlag;
    private Date createTime;
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Boolean isLoginUser;



    public String getUpdateTime(){
        return DateUtils.format(updateTime);
    }

}
